package com.nsy.shortlink.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @className: com.nsy.shortlink.admin.ShortLinkAdminApplication
 * @author: 宁舒意
 * @description: TODO
 * @date: 2024/9/25 16:39
 */

//SpringBootApplicatio注解会扫描当前包下面的所有组件，并将组件加到Spring容器里面，如果这个启动类放错位置了就会报错
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients("com.nsy.shortlink.admin.remote")
@MapperScan("com.nsy.shortlink.admin.dao.mapper")
public class ShortLinkAdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShortLinkAdminApplication.class, args);
    }
}
